<?php
namespace data\model;

class Complaint extends BaseModel{


    protected function setUserAttr($value)
    {
        return User::where('openid','=',$value)->value('id');
    }


    public function getUserAttr($value)
    {
        return User::where('id',$value)->value('nickname');
    }


}